<h1><?php __('User Login'); ?></h1>
<div class="form">
<?php
	echo $form->create('User', array('url' => array('action'=>'login')));
	echo $form->hidden('redirect', array('value' => $session->read('Auth.redirect')));
?>
	<fieldset>
		<legend><?php __('Login') ?></legend>
<?php
	foreach($loginFields as $label => $field) {
		$after = null; $type = 'text';
		if ($label == 'password') {
			$after = '<div class="hint">' . $html->link(__('Forgot your password?', true), 
				array('admin'=> false, 'action' => 'reset')) .'</div>';
			$type = 'password';
		}
		echo $form->input($field, array('label' => Inflector::humanize($label).':', 
			'after' => $after, 'type'=>$type));
	}
	echo $form->input('remember_me', array('label'=>__('Remember me', true), 'type'=>'checkbox'));
?>
	</fieldset>
<?php
	echo $form->end(__('Login', true));
?>
</div>